//
//  FlashCell.m
//  digitalCurrency
//
//  Created by 默认账户 on 2019/4/3.
//  Copyright © 2019 XinHuoKeJi. All rights reserved.
//

#import "FlashCell.h"

@implementation FlashCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor blackColor];
        [self setUpAllChildView];
    }
    return self;
}

- (void)setUpAllChildView{
    [self.contentView addSubview:self.titlelabel];
    [self.contentView addSubview:self.imgview];
}

- (UILabel *)titlelabel {
    if (!_titlelabel) {
       
        _titlelabel = [[UILabel alloc] initWithFrame:CGRectMake(-7.5, 45, 60, 20)];
        _titlelabel.text = @"金色财经";
        _titlelabel.font = [UIFont systemFontOfSize:11];
        _titlelabel.textColor = [UIColor whiteColor];
        _titlelabel.textAlignment = NSTextAlignmentCenter;
    }
    
    return _titlelabel;

}

- (UIImageView *)imgview {
    if (!_imgview) {
        _imgview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"app_icon1"]];
        _imgview.frame = CGRectMake(0, 0, 45, 45);        
    }
    
    return _imgview;
}

@end
